/**
 * 
 */
package com.tport.server.service.impl;

import org.apache.commons.pool2.PooledObjectFactory;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.apache.commons.pool2.impl.GenericObjectPoolMXBean;

import com.tport.PoolFactory;
import com.tport.server.service.PortServerService;

/**
 * @author stronghill
 *
 */
public class PortServerServiceImpl implements PortServerService{

	private int serverPort;
	private String serverIp;

	
	public String getServerIp() {
		return serverIp;
	}
	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}
	public int getServerPort() {
		return serverPort;
	}
	public void setServerPort(int serverPort) {
		this.serverPort = serverPort;
	}
	
	public int open() {
		PoolFactory factory = new PoolFactory();  
        GenericObjectPoolConfig config = new GenericObjectPoolConfig();  
        config.setMaxIdle(5);
        // factory.
        // factory.activateObject(p);
        return 0;
	}
}
